/*
 * Created by Jaren at 2021/12/28 16:11
 */
class EzcanModel {
  static const int V5 = 0x05000000;
  static const int V5PLUS = 0x05000001;
  static const int V5F = 0x05000002;
  static const int V5D = 0x05000003;
  static const int GLIDE2 = 0x05000004; // SoloWheel OEM型号，同V5Plus
  static const int GLIDE2_L = 0x05000005; // SoloWheel OEM型号
  static const int V5SE = 0x05000006; // V5瑞士版
  static const int V5E = 0x05000007;
  static const int V5C = 0x05000008;
  static const int L8 = 0x06000002;
  static const int L8F = 0x06000004;
  static const int L8F_CH = 0x06000008; // L8F瑞士版
  static const int L8F_NO = 0x06000009; // L8F挪威版
  static const int L8D = 0x0600000A; // L8D
  static const int L8S = 0x0600000B; // L8S
  static const int L8S_PLUS = 0x0600000C; // L8S+
  static const int L8DF = 0x0600000D; // L8DF
  static const int L8_NO = 0x0600000E; // L8 挪威版，限速24.9
  static const int P1 = 0x07000000;
  static const int P1F = 0x07000001;
  static const int P1SE = 0x07000002;
  static const int P1H = 0x07000003;
  static const int P2 = 0x0F000000;
  static const int P2F = 0x0F000001;
  static const int P2LUXURY = 0x0F000002;
  static const int P2YOUTH = 0x0F000003;
  static const int P2S = 0x0F000004; // P2旗舰版
  static const int V8 = 0x08000000;
  static const int GLIDE3 = 0x08000005; // SoloWheel OEM型号，同V8
  static const int V8F = 0x08000006; // V8 2020款(V8F)
  static const int V8S = 0x08000007; // V8S(除续航里程外，其他与V8F一致)
  static const int V10S = 0x0A000000;
  static const int V10SF = 0x0A000001;
  static const int V10 = 0x0E000000;
  static const int V10F = 0x0E000001;

  static bool isV5(int modelInt) {
    return modelInt & 0x05000000 == 0x05000000;
  }

  static bool isV8(int modelInt) {
    return modelInt & 0x0F000000 == 0x0F000000;
  }

  static bool isV10(int modelInt) {
    return modelInt & 0x0E000000 == 0x0E000000;
  }

  static bool isP1(int modelInt) {
    return modelInt & 0x07000000 == 0x07000000;
  }

  static bool isP2(int modelInt) {
    return modelInt & 0x0F000000 == 0x0F000000;
  }

  static bool isL8(int modelInt) {
    return modelInt & 0x06000000 == 0x06000000;
  }

  static bool isR1(int modelInt) {
    return modelInt & 0x00000000 == 0x00000000;
  }
}
